const fs = require('fs')
const path = require('path')
const [, , equ, env] = process.argv

fs.writeFile(path.join(__dirname,'./package-env.ts'), `// 环境 \nexport const env: 'development' | 'dev' | 'test' | 'production' = '${env}' \n// 设备 \nexport const equ: 'smart' | 'pc' | 'h5' = '${equ}'`, (err) => {
	console.log(`package-env写入${err ? '失败' : '成功'}!!!`)
})
